package com.qms.qep.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.qms.qep.mapper.ProcessParamMapper;
import com.qms.qep.domain.ProcessParam;
import com.qms.qep.service.IProcessParamService;

/**
 * 工序参数Service业务层处理
 * 
 * @author qep
 */
@Service
public class ProcessParamServiceImpl implements IProcessParamService 
{
    @Autowired
    private ProcessParamMapper processParamMapper;

    /**
     * 查询工序参数
     * 
     * @param id 工序参数主键
     * @return 工序参数
     */
    @Override
    public ProcessParam selectProcessParamById(Long id)
    {
        return processParamMapper.selectProcessParamById(id);
    }

    /**
     * 查询工序参数列表
     * 
     * @param processParam 工序参数
     * @return 工序参数
     */
    @Override
    public List<ProcessParam> selectProcessParamList(ProcessParam processParam)
    {
        return processParamMapper.selectProcessParamList(processParam);
    }

    /**
     * 查询工序下的参数列表
     * 
     * @param processId 工序ID
     * @return 工序参数集合
     */
    @Override
    public List<ProcessParam> selectProcessParamsByProcessId(Long processId)
    {
        return processParamMapper.selectProcessParamsByProcessId(processId);
    }

    /**
     * 新增工序参数
     * 
     * @param processParam 工序参数
     * @return 结果
     */
    @Override
    public int insertProcessParam(ProcessParam processParam)
    {
        return processParamMapper.insertProcessParam(processParam);
    }

    /**
     * 修改工序参数
     * 
     * @param processParam 工序参数
     * @return 结果
     */
    @Override
    public int updateProcessParam(ProcessParam processParam)
    {
        return processParamMapper.updateProcessParam(processParam);
    }

    /**
     * 批量删除工序参数
     * 
     * @param ids 需要删除的工序参数主键
     * @return 结果
     */
    @Override
    public int deleteProcessParamByIds(Long[] ids)
    {
        return processParamMapper.deleteProcessParamByIds(ids);
    }

    /**
     * 删除工序参数信息
     * 
     * @param id 工序参数主键
     * @return 结果
     */
    @Override
    public int deleteProcessParamById(Long id)
    {
        return processParamMapper.deleteProcessParamById(id);
    }
} 